  <script type="text/javascript">
  //<![CDATA[
  var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
  
  /***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 5 //set x offset of bar in pixels
var startY = 170 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
	barheight=document.getElementById("topbar").offsetHeight
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		if (!persistclose || persistclose && get_cookie("remainclosed")=="")
		el.style.visibility="visible"
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : iecompattest().scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("topbar");
	stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
  //]]>
  </script>
  
  <style type="text/css">
<!--
#keyword{
	color: #999999;
}
-->
  </style>
  <div id="topbar">

    <div id="my_history">
    	<div class="title"></div>
        <div class="body">
        	<?php $_from = $this->_var['qq']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'im');$this->_foreach['kf_qq'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['kf_qq']['total'] > 0):
    foreach ($_from AS $this->_var['im']):
        $this->_foreach['kf_qq']['iteration']++;
?>
<?php if ($this->_var['im']): ?>
<p class="qq"><a target="blank" href="tencent://message/?uin=<?php echo $this->_var['im']; ?>&amp;Site=<?php echo $this->_var['shop_name']; ?>&amp;Menu=yes">QQ 客服<?php echo $this->_foreach['kf_qq']['iteration']; ?></a></p>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        	<?php $_from = $this->_var['ww']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'im');$this->_foreach['kf_ww'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['kf_ww']['total'] > 0):
    foreach ($_from AS $this->_var['im']):
        $this->_foreach['kf_ww']['iteration']++;
?>
    <?php if ($this->_var['im']): ?>
    <p class="ww"><a href="http://amos1.taobao.com/msg.ww?v=2&uid=<?php echo $this->_var['im']; ?>&s=2" target="_blank">淘宝旺旺<?php echo $this->_foreach['kf_ww']['iteration']; ?></a></p>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php $_from = $this->_var['msn']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'im');$this->_foreach['kf_msn'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['kf_msn']['total'] > 0):
    foreach ($_from AS $this->_var['im']):
        $this->_foreach['kf_msn']['iteration']++;
?>
    <?php if ($this->_var['im']): ?>
    <p class="msn"><a href="msnim:chat?contact=<?php echo $this->_var['im']; ?>">MSN客服<?php echo $this->_foreach['kf_msn']['iteration']; ?></a></p>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </div>
        <div class="bottom"><a href="" onClick="closebar(); return false"><img src="themes/default/images/img/black_close.gif" border="0" /></a></div>
    </div> 
</div>
  
  
<div id="qq_top_1">
	<div class="body">
		<div class="left"><?php 
$k = array (
  'name' => 'member_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?></div>
        <div class="right">
        	<p class="shopinfo">欢迎您！来到非凡电子商城</p>
        </div>
    </div>
    
</div> 

<div id="header_1">
	<div id="header_1_body">
		<div class="left">
        	<a href="index.php" title="非凡电子商城：时尚秀风格"><img src="themes/default/images/qqshop/logo.gif" border="0"></a>
        </div>
        
        <div class="right">
        	<ul id="globalTopNav">
  <?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nav_top_list']['total'] > 0):
    foreach ($_from AS $this->_var['nav']):
        $this->_foreach['nav_top_list']['iteration']++;
?>
    <li<?php if (($this->_foreach['nav_top_list']['iteration'] == $this->_foreach['nav_top_list']['total'])): ?> id="globalTopNavLast"<?php endif; ?>>
    	<a href="<?php echo $this->_var['nav']['url']; ?>" <?php if ($this->_var['nav']['opennew'] == 1): ?>target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['name']; ?></a>
        <?php if (! ($this->_foreach['nav_top_list']['iteration'] == $this->_foreach['nav_top_list']['total'])): ?>
        <span>|</span>
        <?php endif; ?>
    </li>
		
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>
  			
            <div id="my_u_info"> <MARQUEE onmouseover=this.stop() onmouseout=this.start() 
scrollAmount=3><U><FONT color=red>
<P><?php echo $this->_var['shop_notice']; ?></P></FONT></U></MARQUEE></div>
        </div> 
    </div>
</div> 

<ul id="my_main_nav">
    <li<?php if ($this->_var['navigator_list']['config']['index'] == 1): ?> class="cp"<?php endif; ?>><a href="index.php"><?php echo $this->_var['lang']['home']; ?></a></li>
    <?php $_from = $this->_var['navigator_list']['middle']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_middle_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nav_middle_list']['total'] > 0):
    foreach ($_from AS $this->_var['nav']):
        $this->_foreach['nav_middle_list']['iteration']++;
?>
    <li<?php if ($this->_var['nav']['active'] == 1): ?> class="cp"<?php endif; ?>><a href="<?php echo $this->_var['nav']['url']; ?>" <?php if ($this->_var['nav']['opennew'] == 1): ?>target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['name']; ?></a></li>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>

<div id="qq_main_nav">

	<div class="body">
    
    	<div class="qq_menu"><p>全部商品分类</p></div>
        
        
        <div id="qq_search">
  <form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()">
    <input  name="keywords" type="text" id="keyword" value="联想笔记本"  onFocus="return myValue2();" class="textInput" />
    <input type="submit"  value="" class="s-img" style="border:0;" /> 
  </form>
</div>

        <div id="qq_hotkeys">
        	<span>热门搜索：</span>
            <?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)):
    foreach ($_from AS $this->_var['val']):
?><a href="search.php?keywords=<?php echo urlencode($this->_var['val']); ?>"><?php echo $this->_var['val']; ?></a><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </div> 
    </div> 

</div> 

<script type="text/javascript">
//<![CDATA[

window.onload = function()
{
  fixpng();
}
function checkSearchForm()
{
    if(document.getElementById('keyword').value)
    {
        return true;
    }
    else
    {
		    alert("请输入关键词！");
        return false;
    }
}

function myValue1()
{
	document.getElementById('keyword').value = "请输入商品名称或编号...";
}

function myValue2()
{
	document.getElementById('keyword').value = "";
}




document.oncontextmenu=function(e){return false;} 

var myul = document.getElementById('my_main_nav');
var myli = myul.getElementsByTagName('li');
for(var i = 0;i<myli.length;i++){
	
	if(myli[i].className !='cp'){
		myli[i].onmouseover = function(){this.className = 'nav_hover';}
		myli[i].onmouseout  = function(){this.className ='';}
	}
}


//]]>
</script>



